import request from '@/utils/request'
import axios from "axios";

// 获取仪表盘统计数据
export function getStats() {
  return request({
    url: '/api/dashboard/stats',
    method: 'get'
  })
}

// 获取营收数据
export function getRevenue(params) {
  return request({
    url: '/api/dashboard/revenue',
    method: 'get',
    params
  })
}

// 获取热销菜品
export function getHotDishes(params) {
  return request({
    url: '/api/dashboard/hot-dishes',
    method: 'get',
    params
  })
}

// 获取最新预订
export function getLatestreservations(params) {
  return request({
    url: '/api/dashboard/latest-reservations',
    method: 'get',
    params
  })
}





